package com.feng.Controller;

import com.feng.domain.ResponseResult;
import com.feng.domain.entity.Link;
import com.feng.service.LinkService;

import jdk.internal.dynalink.linker.LinkerServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/link")
public class LinkController {
    @Autowired
     private LinkService linkService;

    /**
     * 查询所有友联数据
     * @return
     */
    @GetMapping("/getAllLink")
    public ResponseResult getAllLink(){
       return linkService.getAllLink();
    }
}
